<?php 
namespace Common\Model;
use Think\Model\RelationModel;
class YgclTiyanModel extends RelationModel{
	protected $_link = array(
			'User'=>array(
					'mapping_type'=>self::BELONGS_TO,
					'class_name'  =>'Users',
					'foreign_key'=>'uid',
					//'as_fields'=>'title:class',
			),
			'Order'=>array(
					'mapping_type'=>self::BELONGS_TO,
					'class_name'  =>'YgclOrder',
					'foreign_key'=>'orderid',
					//'as_fields'=>'title:class',
			),
	);
}
?>